package Model.Content;

import Model.BusinessRules.*;

public abstract class RuleTypeList {

	private static RuleType[] ruletypelist = {
			new RuleType("Attribute Range rule", new AttRange()),
			new RuleType("Attribute Compare rule", new AttCompare())
	};

	public static IRuleTypes getRule(String name){
		for(RuleType t : ruletypelist){
			if(name.equals(t.getName())){
				return t.getIRuleType();
			}
		}
		return null;
	}
	
	public static RuleType[] getRuleTypeList(){
		return ruletypelist;
	}
	
	
}
